﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ArticleList.aspx.cs" Inherits="Com.CMS263.Web.manage.ArticleList" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="style/main.css" rel="stylesheet" type="text/css" />
    <link href="common/validator.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="/manage/js/pager.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
                <tr>
                    <td height="23" class="table_2">
                       <asp:Label ID="lbTypeName" runat="server"></asp:Label>  管理</td>
                </tr>
                <tr>
                    
                    <td class="tdside" align="left">
                      <a href="AddArticle.aspx?pid=<%=pid %>">添加新文章</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        搜索:<asp:TextBox ID="key" runat="server"></asp:TextBox>
                        <asp:Button ID="Button1" runat="server" Text="搜索" />
                        <br />
                    </td>
                </tr>
                <tr><td>
                <table width="95%">
                 <tr><td>编号</td><td>标题</td><td>添加日期</td><td>操作</td></tr>
                
                <asp:Repeater ID="artList" runat="server" onitemcommand="artList_ItemCommand">
                <ItemTemplate>
               <tr><td><%#Eval("id") %></td><td><%#Eval("title") %></td><td><%#Eval("addDate") %></td><td><a href="ModArt.aspx?id=<%#Eval("id") %>&page=<%=page %>">修改</a>&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="btn" CommandArgument='<%#Eval("id") %>' runat="server" Text="删除"  OnClientClick="return confirm('这是一个不可逆的操作，真的要删除此记录')" /></td></tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                 <tr style="background-color:#ccc" ><td><%#Eval("id") %></td><td><%#Eval("title") %></td><td><%#Eval("addDate") %></td><td><a href="ModArt.aspx?id=<%#Eval("id") %>&page=<%=page %>">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<asp:LinkButton ID="btn" CommandArgument='<%#Eval("id") %>' runat="server" Text="删除"  OnClientClick="return confirm('这是一个不可逆的操作，真的要删除此记录')"  /></td></tr>
                </AlternatingItemTemplate>
                </asp:Repeater></td></tr>
                </table>
                <tr>
                <td class="tdside" align="right">
                <%=GetPager() %></td>
                </tr>
             
                
                </table>
    </div>
    </form>
</body>
</html>
